package cn.nawang.ebeim.api.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: StorageVersionTreeToDo
 * @Description: TODO
 * @author fanyb
 * @date Aug 26, 2015 2:22:26 PM
 * @version v1.0
 */
@Entity
@Table(name = "storage_version_tree", catalog = "ebeim")
public class StorageVersionTree {
  private String id;
  private String datasourceId;
  private String version;
  private String storageCloudId1;
  private String storageCloudId2;
  private String storageCloudId3;
  private Long copyCount;

  @Id
  @Column(name = "id", unique = true, nullable = false, length = 45)
  @GeneratedValue(generator = "ID")
  @GenericGenerator(name = "ID", strategy = "uuid")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }
  
  @Column(name = "datasource_id", unique = true, nullable = false, length = 45)
  public String getDatasourceId() {
    return datasourceId;
  }

  public void setDatasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
  }

  @Column(name = "version", unique = true, nullable = false, length = 255)
  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }

  @Column(name = "storage_cloud_id1")
  public String getStorageCloudId1() {
    return storageCloudId1;
  }

  public void setStorageCloudId1(String storageCloudId1) {
    this.storageCloudId1 = storageCloudId1;
  }

  @Column(name = "storage_cloud_id2")
  public String getStorageCloudId2() {
    return storageCloudId2;
  }

  public void setStorageCloudId2(String storageCloudId2) {
    this.storageCloudId2 = storageCloudId2;
  }

  @Column(name = "storage_cloud_id3")
  public String getStorageCloudId3() {
    return storageCloudId3;
  }

  public void setStorageCloudId3(String storageCloudId3) {
    this.storageCloudId3 = storageCloudId3;
  }

  @Column(name = "copy_count")
  public Long getCopyCount() {
    return copyCount;
  }

  public void setCopyCount(Long copyCount) {
    this.copyCount = copyCount;
  }
}
